/***
    Amrita ITEWS - Copyright (C) 2009 Amrita Vishwa Vidyapeetham, Amritapuri.
                                       (http://www.amrita.edu)
    ***************************************************************************
    This file is part of the Amrita ITEWS distribution.
    Amrita ITEWS is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License (version 2) as published
    by the Free Software Foundation AND MODIFIED BY the Amrita ITEWS exception.
    ***NOTE*** The exception to the GPL is included to allow you to distribute
    a combined work that includes Amrita ITEWS without being obliged to provide
    the source code for proprietary components outside of the Amrita ITEWS
    software. Amrita ITEWS is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
    Public License for more details. You should have received a copy of the GNU
    General Public License and the Amrita ITEWS license exception along with
    Amrita ITEWS if not then it can be viewed here:
    http://itews.amrita.ac.in/license.html.


    Documentation, latest information, license and contact details are at:
    http://itews.amrita.ac.in/


    Amrita ITEWS source code can be found at:
    http://code.google.com/p/itews


    The initial code-base of Amrita ITEWS was developed by Amrita Vishwa
    Vidyapeetham as part of the project titled,"Intelligent & Interactive
    Telematics using Emerging Wireless Technologies for Transport Systems
    (ITEWS)" sponsored by Technology Information Forecasting and Assessment
    Council (TIFAC), India.
***/

/*! \file str_printf.h
    \brief String Print Library Header file.
*/

#ifndef __STR_PRINTF_H__
#define __STR_PRINTF_H__

#include <stdarg.h>
#include <ctype.h>
#include <string.h>
#include <typedefs.h>

#define UNSIGNED            0x00000001
#define HEX                 0x00000010
#define SIZE_32             0x00000100
#define SIZE_64             0x00000200
#define MINUS              0x00001000
#define ADDRESS             0x00002000

/*
 * Note: Use only the following format specifiers:
 * Also Note! For %d, %x, %u the arguments must be 32-bit
 * integers (short and byte values must be casted to 32-bit integer
 * values while passing)
 *
 * %d : for signed 32-bit int
 * %x : for 32-bit hex
 * %u : for unsigned 32-bit int
 * %s : for string
 * %c : for char
 */
int32 str_vsnprintf( char *buf, size_t sz, const char* format, va_list args );
int32 str_snprintf(char * buf, size_t size, const char *fmt, ...);

#endif /*__STR_PRINTF_H__*/
